package appapi.dto;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
@ApiModel(value = "设备台账记录显示对象")
@Data
public class EquiPageReqModel {

    @ApiModelProperty(value = "设备类型名称")
    @Excel(name = "设备类型名称")
    private String equipTypeName;

    @ApiModelProperty(value = "设备编号")
    @Excel(name = "设备编号")
    private String equipNo;

    @ApiModelProperty(value = "状态 0 正常 1 停用")
    @Excel(name = "状态",replace = {"正常_0","停用_1"})
//    private Integer isEnable;
    private Integer equipStatus;

    @ApiModelProperty(value = "终端编号")
    @Excel(name = "终端编号")
    private String equidTerminal;

    @ApiModelProperty(value = "设备来源")
    @Excel(name = "设备来源",replace = {"外租设备_0","自有设备_1","队伍自带_2"})
    private Integer equipSource;

    @ApiModelProperty(value = "所属机构")
    @Excel(name = "所属机构")
    private String projName;
//    private Long orgaId;

    @ApiModelProperty(value="监检证书号")
    @Excel(name = "监检证书号")
    private String monitoringCode;

    @ApiModelProperty(value = "退场日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "退场日期",orderNum = "9",width =20 ,format = "yyyy-MM-dd HH:mm:ss")
    private Date actQuitDate;



}
